package com.jikedaquan.dxc.util;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

public class ConfigUtil {
    static {
        init();
    }
    public static String rootpath;
    public static String nofile;
    public static String nopath;

    public static void init() {
        Properties properties=new Properties();
        String configFile="config.properties";
        InputStream is=BaseDao.class.getClassLoader().getResourceAsStream(configFile);
        try {
            properties.load(new InputStreamReader(is,"utf-8"));
        } catch (IOException e) {
            e.printStackTrace();
        }
        rootpath=properties.getProperty("config.rootpath");
        nofile=properties.getProperty("config.nofile");
        nopath=properties.getProperty("config.nopath");
    }
}
